<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>web workers</title>
  <link href="../css/el-upload.css" type="text/css" rel="stylesheet"/>
</head>
<script src="http://unpkg.com/vue/dist/vue.js"></script>
<script src="http://unpkg.com/element-ui@2.15.7/lib/index.js"></script>
<body>
  <div class="wrap">

    <h2> web workers</h2>

    <div id="app">
      <el-upload
        class="avatar-uploader"
        action="https://jsonplaceholder.typicode.com/posts/"
        :show-file-list="false"
        :on-success="handleAvatarSuccess"
        :before-upload="beforeAvatarUpload"
      >
        <img v-if="imageUrl" :src="imageUrl" class="avatar">
        <i v-else class="el-icon-plus avatar-uploader-icon"></i>
      </el-upload>

      <el-button @click="showLog">显示弹框</el-button>
    </div>
  </div>
</body>
<script src="../lib/spark.js"></script>
<script src="../utils/base.js"></script>
<script src="./index.js"></script>
</html>
